package com.example.xdzx.utils;

import com.aliyun.oss.OSS;
import com.aliyun.oss.OSSClientBuilder;

public class InitializeOssClient {

    /**
     * 返回一个OSS连接实例
     */
    public static OSS getMyOss(){
        String endpoint = "oss-cn-chengdu.aliyuncs.com";
        String accessKeyId = "LTAI5tKZ8JEPR7ziXQoSKXos";
        String accessKeySecret = "PnNYo8kt6k0MH1un17PvN5mfBNgJIR";
        OSS ossClient = new OSSClientBuilder().build(endpoint, accessKeyId, accessKeySecret);
        return ossClient;
    }
}
